<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>管理中心</title>
<script type="text/javascript" src="scripts/jquery.js"></script>
</head>
<body>
<!--{include file="top.htm"}-->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="150" valign="top"><!--{include file="left.htm"}--></td>
<td valign="top">
<div class='title'>
<a href="?action=config&do=menu_list">菜单列表</a>
&raquo;&nbsp;<!--{if $mode=='insert'}-->添加菜单<!--{else}-->编辑菜单<!--{/if}-->

</div>
<div class='item'>
	<table width="100%">
	<form action="?action=config&do=menu_<!--{$mode}-->" method="post">
		<tr>
		<td align="right" width="80" height="30">上级菜单：</td>
		<td><select name="parent_id">
		<option value="0">请选择...</option><!--{html_options options=$menu_list selected=$menu.parent_id}--></select></td>
		</tr>
		<tr>
		<td align="right" width="80" height="30">菜单名称：</td>
		<td><input type="text" name="menu_name" size="40" value="<!--{$menu.name|escape:html}-->" class="input"/></td>
		</tr>
		<tr>
		<td align="right"  height="30">菜单地址：</td>
		<td><input type="text" name="menu_link" size="40" value="<!--{$menu.link|escape:html}-->" class="input"/></td>
		</tr>
		
		<tr>
		<td align="right" height="30">菜单方式：</td>
		<td>
		<label><input type="radio" name="menu_target" value="1" {if $menu.target==1}checked{/if} /> 新窗</label>
		<label><input type="radio" name="menu_target" value="0" {if $menu.target==0}checked{/if} /> 原窗</label>
		</td>
		</tr>
		
		<tr>
		<td align="right" height="30">菜单位置：</td>
		<td>
		<label><input type="radio" name="menu_mode" value="0" {if $menu.mode==0}checked{/if} /> 顶部</label>
		<label><input type="radio" name="menu_mode" value="1" {if $menu.mode==1}checked{/if} /> 底部</label>
		</td>
		</tr>	
		
		<tr>
		<td align="right" height="30">菜单排序：</td>
		<td><input type="text" name="menu_sort" size="10" value="<!--{$menu.sort|escape:html}-->" class="input" /></td>
		</tr>	

		<tr>
		<td align="right" height="30">菜单状态：</td>
		<td>
		<label><input type="radio" name="menu_state" value="1" {if $menu.state==1}checked{/if} /> 正常</label>
		<label><input type="radio" name="menu_state" value="0" {if $menu.state==0}checked{/if} /> 锁定</label>
		</td>
		</tr>	

		<tr>
		<td align="right" height="30">&nbsp;</td>
		<td>
		<input type="submit" value="提交" class="button"/>
		</td>
		</tr>
		<input type="hidden" name="menu_id" value="<!--{$menu.id}-->"/>
	</form>
	</table>
</div>
</td>
</tr>
</table>
</body>
</html>